package com.cqz.unit1.deamonThread;

public class Run
{
    public static void main(String[] args) {
        try
        {
            MyThread thread=new MyThread();
            thread.setDaemon(true);
            thread.start();;
            Thread.sleep(5000);
            System.out.println("stop");
        }
        catch (InterruptedException e)
        {
            e.printStackTrace();
        }
    }
}
